home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 8: LINUX Games / Linux Cubed Series 8 - LINUX Games.iso / games / x11 / strategy / xvmines-.0 / xvmines- / xvmines-1.0 / xvmines.h < prev    next >
C/C++ Source or Header  |  1993-06-27  |  2KB  |  69 lines

  1. #define HORIZ_CELLS  10
  2. #define VERT_CELLS   10
  3. #define NUM_MINES    15
  4. #define IC_WIDTH   32
  5. #define IC_HEIGHT  32
  6.  
  7. #define EMPTY   0
  8. #define ONE     1
  9. #define TWO     2
  10. #define THREE   3
  11. #define FOUR    4
  12. #define FIVE     5
  13. #define SIX    6
  14. #define SEVEN    7
  15. #define EIGHT   8
  16. #define CLOSED  9
  17. #define MARKED  10
  18. #define MINE    11
  19. #define QUEST   12
  20. #define NUM_ICONS 13
  21.  
  22.  
  23. #define FALSE      0
  24. #define TRUE       1
  25.  
  26. #define CLEAR_YES  0
  27. #define CLEAR_NO   1
  28.  
  29. #define QUANTUM   5
  30.  
  31. #define KEY       22
  32.  
  33. #define MAX_WIDTH   35
  34. #define MAX_HEIGHT  24
  35. #define MSG_CANVAS_HEIGHT 25
  36. #define TIME_X 7
  37. #define TIME_Y 17
  38. #define RESULT_X 150
  39. #define RESULT_Y 17
  40.  
  41. typedef struct _cell {
  42.     int             in_state;    /* core state */
  43.     int             out_state;    /* displayed state */
  44. }               cell;
  45.  
  46. #define PLACE_ICON(icon,wherey,wherex) XCopyPlane(display,icon,pmap,def_gc,0,0, \
  47.                                           IC_WIDTH,IC_HEIGHT,wherex,wherey,1L)
  48.  
  49. /* function prototypes */
  50. #ifdef ANSI
  51. int             get_cell(int, int, int *, int *);
  52. int             place_tiles(int, int, int);
  53. int             open_tile(int, int);
  54. int             mark_tile(int, int);
  55. int             auto_open(int, int);
  56. int             init(void);
  57. int             show_placements(int);
  58. void            finish(char *);
  59. #else
  60. int             get_cell();
  61. int             place_tiles();
  62. int             open_tile();
  63. int             mark_tile();
  64. int             auto_open();
  65. int             init();
  66. int             show_placements();
  67. void            finish();
  68. #endif
  69.